<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: SharedPtr&lt; Ty &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_shared_ptr-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SharedPtr&lt; Ty &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>智能指针  
 <a href="class_shared_ptr.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6fb30b311948c74e53173341e36c0816"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a6fb30b311948c74e53173341e36c0816">SharedPtr</a> ()</td></tr>
<tr class="separator:a6fb30b311948c74e53173341e36c0816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a468ebe30de4922e44b5ff0df76aadf19"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a468ebe30de4922e44b5ff0df76aadf19">SharedPtr</a> (Ty *p)</td></tr>
<tr class="separator:a468ebe30de4922e44b5ff0df76aadf19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2db179a5f8a2eae0669c666c882cad1a"><td class="memTemplParams" colspan="2">template&lt;class DELTYPE &gt; </td></tr>
<tr class="memitem:a2db179a5f8a2eae0669c666c882cad1a"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a2db179a5f8a2eae0669c666c882cad1a">SharedPtr</a> (Ty *p, DELTYPE pFunc)</td></tr>
<tr class="separator:a2db179a5f8a2eae0669c666c882cad1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a277b45186fb4a9befd319bf9b792e386"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a277b45186fb4a9befd319bf9b792e386">SharedPtr</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;obj)</td></tr>
<tr class="separator:a277b45186fb4a9befd319bf9b792e386"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e4b18eca0ee5424f60e87599125e631"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a4e4b18eca0ee5424f60e87599125e631">~SharedPtr</a> ()</td></tr>
<tr class="separator:a4e4b18eca0ee5424f60e87599125e631"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1074a23ed09c7b3d5b9933f20ca12c4d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a1074a23ed09c7b3d5b9933f20ca12c4d">operator=</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;obj)</td></tr>
<tr class="separator:a1074a23ed09c7b3d5b9933f20ca12c4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc68e9262440f7f28f2b302b408d6100"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#acc68e9262440f7f28f2b302b408d6100">operator bool</a> () const</td></tr>
<tr class="separator:acc68e9262440f7f28f2b302b408d6100"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b0a4c8396bf40f91994f729855c0a5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a0b0a4c8396bf40f91994f729855c0a5a">Reset</a> (Ty *p)</td></tr>
<tr class="separator:a0b0a4c8396bf40f91994f729855c0a5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8062eb46f26dd1b80c438b65ad56f45d"><td class="memTemplParams" colspan="2">template&lt;class DELTYPE &gt; </td></tr>
<tr class="memitem:a8062eb46f26dd1b80c438b65ad56f45d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a8062eb46f26dd1b80c438b65ad56f45d">Reset</a> (Ty *p, DELTYPE pFunc)</td></tr>
<tr class="separator:a8062eb46f26dd1b80c438b65ad56f45d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f15d2d3d2834b0667791f3abfd9e0d7"><td class="memItemLeft" align="right" valign="top">Ty *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a0f15d2d3d2834b0667791f3abfd9e0d7">Get</a> ()</td></tr>
<tr class="separator:a0f15d2d3d2834b0667791f3abfd9e0d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace79bd5b217814fc2fea864e63ce4a2d"><td class="memItemLeft" align="right" valign="top">Ty *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#ace79bd5b217814fc2fea864e63ce4a2d">Get</a> () const</td></tr>
<tr class="separator:ace79bd5b217814fc2fea864e63ce4a2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e7a471598e0a29216c53fb33174c9bd"><td class="memItemLeft" align="right" valign="top">Ty &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a8e7a471598e0a29216c53fb33174c9bd">operator*</a> ()</td></tr>
<tr class="separator:a8e7a471598e0a29216c53fb33174c9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7cc224214407ad400c3c09011f115a1"><td class="memItemLeft" align="right" valign="top">const Ty &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#ab7cc224214407ad400c3c09011f115a1">operator*</a> () const</td></tr>
<tr class="separator:ab7cc224214407ad400c3c09011f115a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9b18e35b9be60734780ff69a401a0ec"><td class="memItemLeft" align="right" valign="top">Ty *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#aa9b18e35b9be60734780ff69a401a0ec">operator-&gt;</a> () const</td></tr>
<tr class="separator:aa9b18e35b9be60734780ff69a401a0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae50fd1627a9709bf336c12bd6e716a9c"><td class="memItemLeft" align="right" valign="top">Ty *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#ae50fd1627a9709bf336c12bd6e716a9c">operator-&gt;</a> ()</td></tr>
<tr class="separator:ae50fd1627a9709bf336c12bd6e716a9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d01af086ba301328e14f279a7ab400a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a4d01af086ba301328e14f279a7ab400a">Swap</a> (<a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;ptr)</td></tr>
<tr class="separator:a4d01af086ba301328e14f279a7ab400a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac3436282df985c1284d5c9561dbdfbe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#aac3436282df985c1284d5c9561dbdfbe">RefCount</a> () const</td></tr>
<tr class="separator:aac3436282df985c1284d5c9561dbdfbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a3fc83fcb301d84e57f203e60289d9547"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a3fc83fcb301d84e57f203e60289d9547">IncRef</a> () const</td></tr>
<tr class="separator:a3fc83fcb301d84e57f203e60289d9547"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af406d008b51bbebf61d19cc5ed83a17b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#af406d008b51bbebf61d19cc5ed83a17b">DecRef</a> () const</td></tr>
<tr class="separator:af406d008b51bbebf61d19cc5ed83a17b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24f657d75f67cfc9898375871f15bdae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a24f657d75f67cfc9898375871f15bdae">Reset</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;obj)</td></tr>
<tr class="separator:a24f657d75f67cfc9898375871f15bdae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a47ce7263044839d74f75e2a1bf658a83"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_share_count_base.html">ShareCountBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shared_ptr.html#a47ce7263044839d74f75e2a1bf658a83">_pBase</a></td></tr>
<tr class="separator:a47ce7263044839d74f75e2a1bf658a83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class Ty&gt;<br />
class SharedPtr&lt; Ty &gt;</h3>

<p>智能指针 </p>
<dl class="section remark"><dt>备注</dt><dd>为没有c++11的编译器写的智能指针 </dd></dl>

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00119">119</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a6fb30b311948c74e53173341e36c0816"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fb30b311948c74e53173341e36c0816">&#9670;&nbsp;</a></span>SharedPtr() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::<a class="el" href="class_shared_ptr.html">SharedPtr</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00122">122</a> 行定义.</p>

</div>
</div>
<a id="a468ebe30de4922e44b5ff0df76aadf19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a468ebe30de4922e44b5ff0df76aadf19">&#9670;&nbsp;</a></span>SharedPtr() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::<a class="el" href="class_shared_ptr.html">SharedPtr</a> </td>
          <td>(</td>
          <td class="paramtype">Ty *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00124">124</a> 行定义.</p>

</div>
</div>
<a id="a2db179a5f8a2eae0669c666c882cad1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2db179a5f8a2eae0669c666c882cad1a">&#9670;&nbsp;</a></span>SharedPtr() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<div class="memtemplate">
template&lt;class DELTYPE &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::<a class="el" href="class_shared_ptr.html">SharedPtr</a> </td>
          <td>(</td>
          <td class="paramtype">Ty *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DELTYPE&#160;</td>
          <td class="paramname"><em>pFunc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00130">130</a> 行定义.</p>

</div>
</div>
<a id="a277b45186fb4a9befd319bf9b792e386"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a277b45186fb4a9befd319bf9b792e386">&#9670;&nbsp;</a></span>SharedPtr() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::<a class="el" href="class_shared_ptr.html">SharedPtr</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00135">135</a> 行定义.</p>

</div>
</div>
<a id="a4e4b18eca0ee5424f60e87599125e631"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e4b18eca0ee5424f60e87599125e631">&#9670;&nbsp;</a></span>~SharedPtr()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::~<a class="el" href="class_shared_ptr.html">SharedPtr</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00140">140</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af406d008b51bbebf61d19cc5ed83a17b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af406d008b51bbebf61d19cc5ed83a17b">&#9670;&nbsp;</a></span>DecRef()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::DecRef </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00266">266</a> 行定义.</p>

</div>
</div>
<a id="a0f15d2d3d2834b0667791f3abfd9e0d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f15d2d3d2834b0667791f3abfd9e0d7">&#9670;&nbsp;</a></span>Get() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ty* <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::Get </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00202">202</a> 行定义.</p>

</div>
</div>
<a id="ace79bd5b217814fc2fea864e63ce4a2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace79bd5b217814fc2fea864e63ce4a2d">&#9670;&nbsp;</a></span>Get() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ty* <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::Get </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00214">214</a> 行定义.</p>

</div>
</div>
<a id="a3fc83fcb301d84e57f203e60289d9547"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fc83fcb301d84e57f203e60289d9547">&#9670;&nbsp;</a></span>IncRef()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::IncRef </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00258">258</a> 行定义.</p>

</div>
</div>
<a id="acc68e9262440f7f28f2b302b408d6100"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc68e9262440f7f28f2b302b408d6100">&#9670;&nbsp;</a></span>operator bool()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00151">151</a> 行定义.</p>

</div>
</div>
<a id="a8e7a471598e0a29216c53fb33174c9bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e7a471598e0a29216c53fb33174c9bd">&#9670;&nbsp;</a></span>operator*() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ty&amp; <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::operator* </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00226">226</a> 行定义.</p>

</div>
</div>
<a id="ab7cc224214407ad400c3c09011f115a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7cc224214407ad400c3c09011f115a1">&#9670;&nbsp;</a></span>operator*() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const Ty&amp; <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::operator* </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00231">231</a> 行定义.</p>

</div>
</div>
<a id="ae50fd1627a9709bf336c12bd6e716a9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae50fd1627a9709bf336c12bd6e716a9c">&#9670;&nbsp;</a></span>operator-&gt;() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ty* <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::operator-&gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00240">240</a> 行定义.</p>

</div>
</div>
<a id="aa9b18e35b9be60734780ff69a401a0ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9b18e35b9be60734780ff69a401a0ec">&#9670;&nbsp;</a></span>operator-&gt;() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ty* <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::operator-&gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00236">236</a> 行定义.</p>

</div>
</div>
<a id="a1074a23ed09c7b3d5b9933f20ca12c4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1074a23ed09c7b3d5b9933f20ca12c4d">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;Ty&gt;&amp; <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00145">145</a> 行定义.</p>

</div>
</div>
<a id="aac3436282df985c1284d5c9561dbdfbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac3436282df985c1284d5c9561dbdfbe">&#9670;&nbsp;</a></span>RefCount()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::RefCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00252">252</a> 行定义.</p>

</div>
</div>
<a id="a24f657d75f67cfc9898375871f15bdae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24f657d75f67cfc9898375871f15bdae">&#9670;&nbsp;</a></span>Reset() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::Reset </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00275">275</a> 行定义.</p>

</div>
</div>
<a id="a0b0a4c8396bf40f91994f729855c0a5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b0a4c8396bf40f91994f729855c0a5a">&#9670;&nbsp;</a></span>Reset() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::Reset </td>
          <td>(</td>
          <td class="paramtype">Ty *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00175">175</a> 行定义.</p>

</div>
</div>
<a id="a8062eb46f26dd1b80c438b65ad56f45d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8062eb46f26dd1b80c438b65ad56f45d">&#9670;&nbsp;</a></span>Reset() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<div class="memtemplate">
template&lt;class DELTYPE &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::Reset </td>
          <td>(</td>
          <td class="paramtype">Ty *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DELTYPE&#160;</td>
          <td class="paramname"><em>pFunc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00189">189</a> 行定义.</p>

</div>
</div>
<a id="a4d01af086ba301328e14f279a7ab400a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d01af086ba301328e14f279a7ab400a">&#9670;&nbsp;</a></span>Swap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00245">245</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a47ce7263044839d74f75e2a1bf658a83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47ce7263044839d74f75e2a1bf658a83">&#9670;&nbsp;</a></span>_pBase</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Ty&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_share_count_base.html">ShareCountBase</a>* <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; Ty &gt;::_pBase</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00286">286</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/thread/<a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
